﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EcoSystem
{
    public interface IDictionaryAppService : ICrudAppService<
        DictionaryItemDto,
        Guid,
        GetDictionaryItemInput,
        CreateOrUpdateDictionaryItemDto,
        CreateOrUpdateDictionaryItemDto>
    {
        /// <summary>
        /// 获取所有
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<List<DictionaryItemDto>> GetAllListAsync(GetDictionaryItemInput input);

        /// <summary>
        /// 获取字典值
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public Task<List<DictionaryValueDto>> GetValueItemsAsync(string name);
    }
}
